package cn.us.eagle.query.criteria;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

/**
 * @author ReasonZhong
 * 
 */
public class SimpleQueryCriteria implements QueryCriteria {
	private Integer intVal1;
	private Integer intVal2;
	private Integer intVal3;
	private Integer intVal4;
	private Integer intVal5;

	private String strVal1;
	private String strVal2;
	private String strVal3;
	private String strVal4;
	private String strVal5;
	private String strVal6;
	private String strVal7;
	private String strVal8;
	private String strVal9;
	private String strVal10;
	private String strVal11;
	private String strVal12;
	private String strVal13;
	private String strVal14;
	private String strVal15;

	private Date dateVal1;
	private Date dateVal2;
	private Date dateVal3;
	private Date dateVal4;
	private Date dateVal5;
	private Date dateVal6;
	private Date dateVal7;
	private Date dateVal8;

	public SimpleQueryCriteria() {

	}

	public SimpleQueryCriteria(String strVal1) {
		this.strVal1 = strVal1;
	}

	public SimpleQueryCriteria(String strVal1, String strVal2) {
		this.strVal1 = strVal1;
		this.strVal2 = strVal2;
	}

	public SimpleQueryCriteria(Integer intVal1) {
		this.intVal1 = intVal1;
	}

	public Integer getIntVal1() {
		return intVal1;
	}

	public void setIntVal1(Integer intVal1) {
		this.intVal1 = intVal1;
	}

	public Integer getIntVal2() {
		return intVal2;
	}

	public void setIntVal2(Integer intVal2) {
		this.intVal2 = intVal2;
	}

	public Integer getIntVal3() {
		return intVal3;
	}

	public void setIntVal3(Integer intVal3) {
		this.intVal3 = intVal3;
	}

	public Integer getIntVal4() {
		return intVal4;
	}

	public void setIntVal4(Integer intVal4) {
		this.intVal4 = intVal4;
	}

	public Integer getIntVal5() {
		return intVal5;
	}

	public void setIntVal5(Integer intVal5) {
		this.intVal5 = intVal5;
	}

	public String getStrVal1() {
		return trim(strVal1);
	}

	public void setStrVal1(String strVal1) {
		this.strVal1 = strVal1;
	}

	public String getStrVal2() {
		return trim(strVal2);
	}

	public void setStrVal2(String strVal2) {
		this.strVal2 = strVal2;
	}

	public String getStrVal3() {
		return trim(strVal3);
	}

	public void setStrVal3(String strVal3) {
		this.strVal3 = strVal3;
	}

	public String getStrVal4() {
		return trim(strVal4);
	}

	public void setStrVal4(String strVal4) {
		this.strVal4 = strVal4;
	}

	public String getStrVal5() {
		return trim(strVal5);
	}

	public void setStrVal5(String strVal5) {
		this.strVal5 = strVal5;
	}

	public String getStrVal6() {
		return trim(strVal6);
	}

	public void setStrVal6(String strVal6) {
		this.strVal6 = strVal6;
	}

	public String getStrVal7() {
		return trim(strVal7);
	}

	public void setStrVal7(String strVal7) {
		this.strVal7 = strVal7;
	}

	public String getStrVal8() {
		return trim(strVal8);
	}

	public void setStrVal8(String strVal8) {
		this.strVal8 = strVal8;
	}

	public String getStrVal9() {
		return trim(strVal9);
	}

	public void setStrVal9(String strVal9) {
		this.strVal9 = strVal9;
	}

	public Date getDateVal1() {
		return dateVal1;
	}

	public void setDateVal1(Date dateVal1) {
		this.dateVal1 = dateVal1;
	}

	public Date getDateVal2() {
		return dateVal2;
	}

	public void setDateVal2(Date dateVal2) {
		this.dateVal2 = dateVal2;
	}

	public Date getDateVal3() {
		return dateVal3;
	}

	public void setDateVal3(Date dateVal3) {
		this.dateVal3 = dateVal3;
	}

	public Date getDateVal4() {
		return dateVal4;
	}

	public void setDateVal4(Date dateVal4) {
		this.dateVal4 = dateVal4;
	}

	public Date getDateVal5() {
		return dateVal5;
	}

	public void setDateVal5(Date dateVal5) {
		this.dateVal5 = dateVal5;
	}

	public Date getDateVal6() {
		return dateVal6;
	}

	public void setDateVal6(Date dateVal6) {
		this.dateVal6 = dateVal6;
	}

	public Date getDateVal7() {
		return dateVal7;
	}

	public void setDateVal7(Date dateVal7) {
		this.dateVal7 = dateVal7;
	}

	public Date getDateVal8() {
		return dateVal8;
	}

	public void setDateVal8(Date dateVal8) {
		this.dateVal8 = dateVal8;
	}

	public String getStrVal10() {
		return strVal10;
	}

	public void setStrVal10(String strVal10) {
		this.strVal10 = strVal10;
	}

	public String getStrVal11() {
		return strVal11;
	}

	public void setStrVal11(String strVal11) {
		this.strVal11 = strVal11;
	}

	public String getStrVal12() {
		return strVal12;
	}

	public void setStrVal12(String strVal12) {
		this.strVal12 = strVal12;
	}

	public String getStrVal13() {
		return strVal13;
	}

	public void setStrVal13(String strVal13) {
		this.strVal13 = strVal13;
	}

	public String getStrVal14() {
		return strVal14;
	}

	public void setStrVal14(String strVal14) {
		this.strVal14 = strVal14;
	}

	public String getStrVal15() {
		return strVal15;
	}

	public void setStrVal15(String strVal15) {
		this.strVal15 = strVal15;
	}

	private String trim(String str) {
		return StringUtils.isEmpty(str) ? str : str.trim();
	}
}
